home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / PolyTextureMenu.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  18.0 KB  |  444 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //  Alias|Wavefront Script File
  19. //  MODIFY THIS AT YOUR OWN RISK
  20. //
  21. //  Creation Date:  Aug 28, 1998
  22. //
  23. //  Author:         bkwok
  24. //
  25. //  Description:
  26. //      This implements the "Texture" submenu on the modeling menubar.
  27. //
  28.  
  29. global proc
  30. PolyRequestUVSetName (string $title, string $cmd, string $version, string $args[])
  31. //
  32. //    Procedure Name:
  33. //        PolyRequestUVSetName
  34. //
  35. //    Description:
  36. //        Helper method to ask the user for a new UV set name and then call
  37. //    a command with the name as the final argument.  The command will be
  38. //    called like: $cmd $version $args "uvSetName"
  39. //
  40. //  Input Arguments:
  41. //        string $title            The title for the dialog box
  42. //        string $cmd                The command to issue
  43. //        string $version            Version to pass onto the command
  44. //        string $args            Arguments to pass onto the command
  45. //
  46. //  Return Value:
  47. //      None.
  48. //
  49. {
  50.     string $response = `promptDialog
  51.         -title $title
  52.         -message "UV Set Name:"
  53.         -text "uvSet"
  54.         -button "OK"
  55.         -button "Cancel"
  56.         -defaultButton "OK"
  57.         -cancelButton "Cancel"
  58.         -dismissString "Cancel"`;
  59.     if ($response == "OK") {
  60.         string $name = `promptDialog -query -text`;
  61.         string $execute = ($cmd + " \"" + $version + "\" {");
  62.         string $comma = "";
  63.         for ($arg in $args) {
  64.             $execute += ($comma + "\"" + $arg + "\"");
  65.             $comma = ", ";
  66.         }
  67.         $execute += ("} \"" + $name + "\"");
  68.         eval ($execute);
  69.     }
  70. }
  71.  
  72. global proc
  73. PolyTextureMenu (string $parent, int $creator, string $selectCmd)
  74. //
  75. //    Procedure Name:
  76. //        PolyTextureMenu
  77. //
  78. //    Description:
  79. //        Helper method to generate the menu items for the texture menus
  80. //
  81. //  Input Arguments:
  82. //        string $parent            The name of the parent widget
  83. //        int $creator            Which creator is calling this
  84. //            Current known creators
  85. //                0    Edit Polygons->Textures
  86. //                1    Relationship Editor->Edit->Create UV Set
  87. //        string $selectCmd        The command to issue to determine which objects
  88. //                                    to affect
  89. //
  90. //  Return Value:
  91. //      None.
  92. //
  93. {
  94.     setParent -m $parent;
  95.  
  96.     if ($creator != 1) {
  97.         menuItem -ecr false -cb false -l "Assign Shader to Each Projection" 
  98.             -i "polyCheck.xpm"
  99.             -dmc "editPolygonsMenuItemToShelf \"togglePolyCreateShaderWithMapping\""
  100.             -ann "Assign Shader to Each Projection: Create and Assign a new texture for each new projection"
  101.             -c "togglePolyCreateShaderWithMapping" 
  102.                 toggleCreateShaderItem;
  103.     }
  104.  
  105.  
  106.     string $prefix = ($creator == 0 ? "" : "PolyRequestUVSetName \"Create Planar Mapping\" ");
  107.     string $cmd = $prefix + "performPolyProjectionArgList";
  108.     string $version = "\"1\"";
  109.     string $args0 = ("{\"0\", \"Planar\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  110.     string $args1 = ("{\"1\", \"Planar\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  111.     string $args2 = ("{\"2\", \"Planar\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  112.     string $suffix = ($creator == 0 ? " \"\"" : "");
  113.     string $dmc = "performPolyProjectionArgList \"1\" {\"2\", \"Planar\", \"ls -sl\", \"0\"} \"\";";
  114.     string $c = ($cmd + " " + $version + " " + $args0 + $suffix);
  115.     menuItem
  116.         -label ($creator == 1 ? "Planar Mapping..." : "Planar Mapping")
  117.         -ecr true 
  118.         -i "polyPlanProj.xpm"
  119.         -dmc $dmc 
  120.         -ann "Planar Mapping: Create a projection planar to the selected faces"
  121.         -c $c planarMappingItem;
  122.     string $c = ($cmd + " " + $version + " " + $args1 + $suffix);
  123.     menuItem -optionBox 1  
  124.         -i "polyPlanProj.xpm"
  125.         -annotation "Planar Mapping Option Box" 
  126.         -l "Planar Mapping Option Box" -ecr false -c $c planarMappingOptionItem;    
  127.     
  128.     string $prefix = ($creator == 0 ? "" : "PolyRequestUVSetName \"Create Cylindrical Mapping\" ");
  129.     string $cmd = $prefix + "performPolyProjectionArgList";
  130.     string $version = "\"1\"";
  131.     string $args0 = ("{\"0\", \"Cylindrical\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  132.     string $args1 = ("{\"1\", \"Cylindrical\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  133.     string $args2 = ("{\"2\", \"Cylindrical\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  134.     string $suffix = ($creator == 0 ? " \"\"" : "");
  135.     string $dmc = "performPolyProjectionArgList \"1\" {\"2\", \"Cylindrical\", \"ls -sl\", \"0\"} \"\";";
  136.     string $c = ($cmd + " " + $version + " " + $args0 + $suffix);
  137.     menuItem
  138.         -label ($creator == 1 ? "Cylindrical Mapping..." : "Cylindrical Mapping")
  139.         -ecr true 
  140.         -i "polyCylProj.xpm"
  141.         -dmc $dmc 
  142.         -ann "Cylindrical Mapping: Create a cylindrical projection on the selected faces"
  143.         -c $c cylindricMappingItem;
  144.     string $c = ($cmd + " " + $version + " " + $args1 + $suffix);
  145.     menuItem -optionBox 1 
  146.         -i "polyCylProj.xpm"
  147.         -annotation "Cylindrical Mapping Option Box" 
  148.         -l "Cylindrical Mapping Option Box" -ecr false -c $c cylindricMappingOptionItem;
  149.     
  150.     string $prefix = ($creator == 0 ? "" : "PolyRequestUVSetName \"Create Spherical Mapping\" ");
  151.     string $cmd = $prefix + "performPolyProjectionArgList";
  152.     string $version = "\"1\"";
  153.     string $args0 = ("{\"0\", \"Spherical\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  154.     string $args1 = ("{\"1\", \"Spherical\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  155.     string $args2 = ("{\"2\", \"Spherical\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  156.     string $suffix = ($creator == 0 ? " \"\"" : "");
  157.     string $c = ($cmd + " " + $version + " " + $args0 + $suffix);
  158.     string $dmc = "performPolyProjectionArgList \"1\" {\"2\", \"Spherical\", \"ls -sl\", \"0\"} \"\";";
  159.     menuItem
  160.         -label ($creator == 1 ? "Spherical Mapping..." : "Spherical Mapping")
  161.         -ecr true 
  162.         -i "polySphereProj.xpm"
  163.         -dmc $dmc
  164.         -ann "Spherical Mapping: Create a spheric projection on the selected faces"
  165.         -c $c sphericMappingItem;
  166.     string $c = ($cmd + " " + $version + " " + $args1 + $suffix);
  167.     menuItem -ob 1 
  168.         -i "polySphereProj.xpm"
  169.         -annotation "Spherical Mapping Option Box" 
  170.         -l "Spherical Mapping Option Box" -ecr false -c $c sphericMappingOptionItem;
  171.  
  172.     menuItem -l "Automatic Mapping"
  173.         -ann "Automatic Projection: Select faces to be mapped automatically"
  174.         -c "performPolyAutoProj 0" -i "polyAutoProj.xpm" ;
  175.     menuItem -optionBox 1
  176.         -l "Automatic Projection Option Box"
  177.         -ann "Automatic Projection Option Box"
  178.         -c "performPolyAutoProj 1" -ecr false -i "polyAutoProj.xpm";
  179.  
  180.     //////////////////////////////////////////////////////////////////////
  181.     menuItem -divider true;
  182.  
  183.     string $prefix = ($creator == 0 ? "" : "PolyRequestUVSetName \"Create Empty UV Set\" ");
  184.     string $cmd = $prefix + "performCreateUVSet";
  185.     string $version = "\"1\"";
  186.     string $args0 = ("{\"0\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  187.     string $args1 = ("{\"1\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  188.     string $args2 = ("{\"2\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  189.     string $suffix = ($creator == 0 ? " \"\"" : "");
  190.     string $dmc = "performCreateUVSet \"1\" {\"2\", \"ls -sl\", \"0\"} \"\";";
  191.     string $c = ($cmd + " " + $version + " " + $args0 + $suffix);
  192.     menuItem
  193.         -label ($creator == 1 ? "Empty UV Set" : "Create Empty UV Set")
  194.         -ecr true 
  195.         -i "polyCreateUVSet.xpm"
  196.         -dmc $dmc
  197.         -ann "Create UV Set: Create a new empty UV set"
  198.         -c $c createUVSetItem;
  199.     if ($creator != 1) {
  200.         string $c = ($cmd + " " + $version + " " + $args1 + $suffix);
  201.         menuItem -optionBox 1  
  202.             -i "polyCreateUVSet.xpm"
  203.             -annotation "Create UV Set Option Box" 
  204.             -l "Create UV Set Option Box" -ecr false -c $c createUVSetOptionItem;    
  205.     }
  206.  
  207.     // Copy UVs to UV set
  208.     string $prefix = "M";    // M is just to ensure a unique name for the menu item
  209.     string $selectUVSetMenu = `menuItem -l "Copy UVs to UV Set" 
  210.         -subMenu true 
  211.         -allowOptionBoxes true 
  212.         ($prefix+"CopyUVSets")`;
  213.  
  214.     string $cmd = "string $menuNames[];" +
  215.                   "buildUVSetMenuNames( $menuNames ); " +
  216.                   "buildUVSetMenu " + $selectUVSetMenu + " $menuNames \"" + $prefix + " \" 1;" +
  217.                   "buildUVSetMenuWithCopyUVsCmd " + $selectUVSetMenu + " $menuNames ;";
  218.                   
  219.     menuItem -e -pmc $cmd $selectUVSetMenu;
  220.  
  221.     string $prefix = ($creator == 0 ? "" : "PolyRequestUVSetName \"Copy Current UV Set\" ");
  222.     string $cmd = $prefix + "performCopyCurrentUVSet";
  223.     string $version = "\"1\"";
  224.     string $args0 = ("{\"0\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  225.     string $args1 = ("{\"1\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  226.     string $args2 = ("{\"2\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  227.     string $suffix = ($creator == 0 ? " \"\"" : "");
  228.     string $dmc = "performCopyCurrentUVSet \"1\" {\"2\", \"ls -sl\", \"0\"} \"\";";
  229.     string $c = ($cmd + " " + $version + " " + $args0 + $suffix);
  230.     menuItem -l "Copy into New UV Set" -ecr true
  231. //        -i ""  // Need to have an icon created for this menu item
  232.         -ann "Copy the selected face's UVs from the active UVset to a new UVset."
  233.         -dmc $dmc
  234.         -c $c copyCurrentUVSet;
  235.     if ($creator != 1) {
  236.         string $c = ($cmd + " " + $version + " " + $args1 + $suffix);
  237.         menuItem -optionBox 1
  238.             -i "polyCreateUVSet.xpm"
  239.             -ann "Copy into New UV Set Option Box"
  240.             -l "Copy into New UV Set Option Box" -ecr false 
  241.             -c $c copyCurrentUVSetOB;
  242.     }
  243.  
  244.     setParent -m ..;
  245.  
  246.     if ($creator != 1) {
  247.  
  248.         menuItem -l "Set Current UV Set..." -ecr true
  249.             -i "polySetCurrentUVSet.xpm"
  250.             -ann "Set the current UV Set on selected objects."
  251.             -c "SetCurrentUVSet" setCurrentUVSet;
  252.  
  253.         menuItem -l "Rename Current UV Set..." -ecr true
  254.             -i "polyRenameUVSet.xpm"
  255.             -ann "Rename the current UV Set on selected objects."
  256.             -c "RenameCurrentUVSet" renameCurrentUVSet;
  257.  
  258.         menuItem -l "Delete Current UV Set" -ecr true
  259.             -i "polyDeleteUVSet.xpm"
  260.             -ann "Delete the current UV Set on selected objects."
  261.             -dmc "performDeleteCurrentUVSet 2"
  262.             -c "DeleteCurrentUVSet" deleteCurrentUVSet;
  263.     }
  264.  
  265.     //////////////////////////////////////////////////////////////////////
  266.     menuItem -divider true;
  267.  
  268.     string $prefix = ($creator == 0 ? "" : "PolyRequestUVSetName \"Create UVs Based On Camera\" ");
  269.     string $cmd = $prefix + "performPolyForceUVArgList";
  270.     string $version = "\"1\"";
  271.     string $args0 = ("{\"0\", \"camera\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  272.     string $args1 = ("{\"1\", \"camera\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  273.     string $args2 = ("{\"2\", \"camera\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  274.     string $suffix = ($creator == 0 ? " \"\"" : "");
  275.     string $dmc = "performPolyForceUVArgList \"1\" {\"2\", \"camera\", \"ls -sl\", \"0\"} \"\";";
  276.     string $c = ($cmd + " " + $version + " " + $args0 + $suffix);
  277.     menuItem
  278.         -label ($creator == 1 ? "Create UVs Based On Camera..." : "Create UVs Based On Camera")
  279.         -ecr true 
  280.         -ann "Create UVs Based On Camera: Create UVs based on the current view of the camera"
  281.         -dmc $dmc
  282.         -c     $c cameraProjectionItem;
  283.     string $c = ($cmd + " " + $version + " " + $args1 + $suffix);
  284.     menuItem -optionBox 1
  285.         -annotation "Create Camera UVs Option Box" 
  286.         -l "Create Camera UVs Option Box" -ecr false 
  287.         -c $c cameraProjectionOptionItem;
  288.  
  289.     if ($creator != 1) {
  290.         menuItem -l "Normalize UVs"  -ecr true
  291.             -ann "Normalize UVs: Normalize UVs of the selected faces"
  292.             -dmc "performPolyForceUV normalize 2"
  293.             -c     "NormalizeUVs" normalizeUVItem;
  294.         menuItem -optionBox 1
  295.             -annotation "Normalize UVs Option Box" 
  296.             -l "Normalize UVs on Polygons Option Box" -ecr false 
  297.             -c "performPolyForceUV normalize 1" normalizeUVOptionItem;
  298.     }
  299.  
  300.     string $prefix = ($creator == 0 ? "" : "PolyRequestUVSetName \"Create Unitized UVs\" ");
  301.     string $cmd = $prefix + "performPolyForceUVArgList";
  302.     string $version = "\"1\"";
  303.     string $args0 = ("{\"0\", \"unitize\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  304.     string $args1 = ("{\"1\", \"unitize\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  305.     string $args2 = ("{\"2\", \"unitize\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}");
  306.     string $suffix = ($creator == 0 ? " \"\"" : "");
  307.     string $dmc = "performPolyForceUVArgList \"1\" {\"2\", \"unitize\", \"ls -sl\", \"0\"} \"\"";
  308.     string $c = ($cmd + " " + $version + " " + $args0 + $suffix);
  309.     menuItem
  310.         -label ($creator == 1 ? "Unitize UVs..." : "Unitize UVs")
  311.         -ecr true 
  312.         -ann "Unitize UVs: Selected face UVs will be moved to fit 0 to 1 texture space"
  313.         -dmc $dmc
  314.         -c     $c unitizeUVItem;
  315.     string $c = ($cmd + " " + $version + " " + $args1 + $suffix);
  316.     menuItem -optionBox 1
  317.         -annotation "Unitize UVs Option Box" 
  318.         -l "Unitize UVs Option Box" -ecr false 
  319.         -c $c unitizeUVOptionItem;
  320.     
  321.     if ($creator != 1) {
  322.         menuItem -l "Flip UVs"  -ecr true
  323.             -iol "FUV"
  324.             -ann "Flip UVs: Flip the UVs for texturing"
  325.             -dmc "performPolyForceUV flip 2"
  326.             -c     "FlipUVs" flipUVItem;
  327.         menuItem -optionBox 1
  328.             -annotation "Flip UVs Option Box" 
  329.             -l "Flip UVs on Polygons Option Box" -ecr false 
  330.             -c "performPolyForceUV flip 1" flipUVOptionItem;
  331.  
  332.         // m2.1 Rotate uvs about vertex
  333.         menuItem -l "Rotate UVs" -ecr true
  334.             -i "polyTextureRotateUV.xpm"
  335.             -ann "Rotate UVs: Rotate selected UVs about vertex"
  336.             -dmc "performPolyRotateUVs 2"
  337.             -ddc "performPolyRotateUVs 1"
  338.             -c "RotateUVs"
  339.             rotateUVItem;
  340.         menuItem -optionBox 1
  341.             -ecr false
  342.             -i "polyTextureRotateUV.xpm"
  343.             -ann "Rotate UVs Option Box"
  344.             -l "Rotate UVs Option Box"
  345.             -c "performPolyRotateUVs 1"
  346.             rotateUVOptionItem;
  347.         
  348.         menuItem -l "Best Plane Texturing Tool"  -ecr true
  349.             -i "bestPlaneTxt.xpm"
  350.             -ann "Best Plane Texturing Tool: Create UVs by computing the best fitting plane"
  351.             -dmc "editPolygonsMenuItemToShelf \"setToolTo polyBestPlaneTexturingContext\""
  352.             -c     "BestPlaneTexturingTool" polyBestPlaneTexturingItem;
  353.  
  354.         menuItem -l "Map UV Border"  -ecr true
  355.             -i "polyMapUVBorder.xpm"
  356.             -ann "Map UV Border: Map the texture border indicated by selected UV to specified shape"
  357.             -ddc "performPolyUntangleUV map 1"
  358.             -dmc "performPolyUntangleUV map 2"
  359.             -c     "MapUVBorder" mapUVBorderItem;
  360.         menuItem -optionBox 1 -i "polyMapUVBorder.xpm" 
  361.                 -annotation "Map UV Border Option Box" 
  362.                 -l "Map UV Border Option Box" -ecr false 
  363.                 -c "performPolyUntangleUV map 1" mapUVBorderOptionItem;
  364.  
  365.         menuItem -l "Straighten UV Border"
  366.             -ann "Straighten UV Border: Select 2 consecutive UVs and a third one to define the border to be straightened"
  367.             -i "polyStraightenUVBorder.xpm"
  368.             -c "performPolyStraightenUV 0";
  369.         menuItem -optionBox 1 -l "Straighten UV Border Option Box" 
  370.             -ann "Straighten UV Border Option Box"
  371.             -i "polyStraightenUVBorder.xpm"
  372.             -c "performPolyStraightenUV 1" -ecr false;
  373.         
  374.         menuItem -l "Relax UVs "  -ecr true
  375.             -i "polyRelaxUVShell.xpm"
  376.             -ann "Relax UVs: Automatically move UVs for better texture space distribution"
  377.             -ddc "performPolyUntangleUV relax 1"
  378.             -dmc "performPolyUntangleUV relax 2"
  379.             -c     "RelaxUVShell" relaxUVShellItem;
  380.         menuItem -optionBox 1 -i "polyRelaxUVShell.xpm" 
  381.             -annotation "Relax UVs Option Box" 
  382.             -l "Relax UVs Option Box" -ecr false 
  383.             -c "performPolyUntangleUV relax 1" relaxUVShellOptionItem;
  384.  
  385.         menuItem -l "Grid UVs"
  386.             -ann "Grid UVs: Snap selected UVs to user specified grid"
  387.             -c "performPolyGridUV 0" -i "polyGridUV.xpm";
  388.         menuItem -optionBox 1
  389.             -l "Grid UVs Option Box" -ann "Grid UVs Option Box"
  390.             -c "performPolyGridUV 1" -ecr false -i "polyGridUV.xpm";
  391.  
  392.         menuItem -l "Align UVs"
  393.             -c "performTextureViewAlignUVsOptions false"
  394.             -annotation "Align UVs: Align selected UVs";
  395.         menuItem -optionBox true
  396.             -l "Align UVs Option Box"
  397.             -ann "Align UVs Option Box"
  398.             -ecr false
  399.             -c "performTextureViewAlignUVsOptions true";
  400.  
  401.         menuItem -l "Layout UVs"
  402.             -ann "Layout UVs: Select faces to be moved in UV space"
  403.             -c "performPolyLayoutUV 0" -i "polyLayoutUV.xpm";
  404.         menuItem -optionBox 1
  405.             -l "Layout UVs Option Box" -ann "Layout UVs Option Box"
  406.             -c "performPolyLayoutUV 1" -ecr false -i "polyLayoutUV.xpm";
  407.     }
  408.  
  409.     //////////////////////////////////////////////////////////////////////
  410.     if ($creator != 1) {
  411.         menuItem -divider true;
  412.  
  413.         menuItem -l "Cut UVs"  -ecr true -i "polyMapCut.xpm"
  414.             -ann "Cut UVs: Separate the texture coordinates along the selected edges"
  415.             -dmc "editPolygonsMenuItemToShelf \"polyPerformAction polyMapCut e 0\""
  416.             -c "CutUVs" cutTextureItem;
  417.  
  418.         menuItem -l "Sew UVs"  -ecr true -i "polyMapSew.xpm"
  419.             -ann "Sew UVs: Sew the textures together along the selected edges"
  420.             -dmc "editPolygonsMenuItemToShelf \"polyPerformAction polyMapSew e 0\""
  421.             -c "SewUVs" sewTextureItem;
  422.  
  423.         menuItem -l "Move and Sew UVs"
  424.             -ann "Move and Sew: Select edges to be mapped merged"
  425.             -c "performPolyMapSewMove 0" -i "polyMoveSew.xpm";
  426.         menuItem -optionBox 1 
  427.             -l "Move and Sew Option Box" -ann "Move and Sew Option Box"
  428.             -c "performPolyMapSewMove 1" -ecr false -i "polyMoveSew.xpm";
  429.         
  430.         menuItem -l "Merge UVs"
  431.             -ann "Merge UVs: Select UVs to be merged"
  432.             -c "performPolyMergeUV 0" -i "polyMergeUV.xpm" ;
  433.         
  434.         menuItem -optionBox 1 -l "Merge UVs Option Box" 
  435.             -ann "Merge UVs Option Box"
  436.             -c "performPolyMergeUV 1" -ecr false -i "polyMergeUV.xpm" ;
  437.  
  438.         menuItem -l "Delete UVs"  -ecr true -i "polyMapDel.xpm"
  439.             -ann "Delete UVs: Deletes the texture coordinates of the selected faces"
  440.             -dmc "editPolygonsMenuItemToShelf \"polyPerformAction polyMapDel f 0\""
  441.             -c "DeleteUVs" delTextureItem;
  442.     }
  443. }
  444.